package File;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;

public class demo04 {
    public static void main(String[] args) throws IOException {
//        File file=new File("./maybe");
//        File file=new File("./");
        File file=new File("D:/");
//        file.createNewFile();
        String[] data=file.list();
        System.out.println(Arrays.toString(data));
        System.out.println("========");
        File[] file1=file.listFiles();
        System.out.println(Arrays.toString(file1));
    }
}
